package org.xp.judgeplatform.pojo.dto.UserDTO;

import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Data
@Schema(description = "用户密码修改请求")
public class UserPasswordDTO {
    
    @NotBlank(message = "当前密码不能为空")
    @Schema(description = "当前密码", example = "oldpassword", required = true)
    private String currentPassword;
    
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    @Schema(description = "新密码", example = "newpassword", required = true)
    private String newPassword;
    
    @NotBlank(message = "确认密码不能为空")
    @Schema(description = "确认密码", example = "newpassword", required = true)
    private String confirmPassword;
}